<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>更新教师</title>
    <link href="/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<div th:include="~{main/index :: nav}"></div>

<div style="display: flex;flex-direction: column;align-items: center;">
    <h4>更新教师</h4>
    <hr>
    <form action='/tea/doUpdate' method='post'>
        <table class="table table-hover table-striped table-bordered">
            <tr>
                <th style="width: 40%"><p>姓名:</p></th>
                <td><input type='text' name='name' th:value=" ${session.user.uname}"></td>
            </tr>
            <tr>
                <th style="width: 40%"><p>手机:</p></th>
                <td><input type="text" name="phone" th:value="${session.user.phone}"></td>
            </tr>
            <tr>
                <th style="width: 40%"><p>密码:</p></th>
                <td><input type='text' name='pwd' th:value="${session.user.pwd}"></td>
            </tr>
            <tr>
                <th style="width: 40%"></th>
                <td><p><button class="btn btn-warning">提交更新</button></p></td>
            </tr>
        </table>




    </form>
</div>
<hr>
</body>
</html>